package com.tubang.logistics.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 货品表
 * </p>
 *
 * @author wsl
 * @since 2017-12-31
 */
@TableName("tb_goods")
public class GoodsEntity extends BaseEntity<GoodsEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
	@TableField("shipper_order_id")
	private String shipperOrderId;
    /**
     * 运输详情编号
     */
	@TableField("transport_id")
	private String transportId;
    /**
     * 货物名称
     */
	private String name;
    /**
     * 货物类型
     */
	private String category;
    /**
     * 货物重量 单位：千克
     */
	private BigDecimal weight;

	/**
	 * 剩余货物重量 单位：千克
	 */
	@TableField("left_weight")
	private BigDecimal leftWeight;


    /**
     * 1完成；0未完成
     */
	@TableField("achieve_flag")
	private String achieveFlag;
    /**
     * 货物父编号
     */
	@TableField("parent_id")
	private String parentId;
    /**
     * 规格
     */
	private String size;
    /**
     * 材料
     */
	private String materials;
    /**
     * 仓库名称
     */
	@TableField("storage_name")
	private String storageName;
    /**
     * 货物单价
     */
	private BigDecimal price;
    /**
     * 提货单号
     */
	@TableField("take_goods_num")
	private String takeGoodsNum;
    /**
     * 卸货地址
     */
	@TableField("address_unload")
	private String addressUnload;
    /**
     * 批次号
     */
	@TableField("batch_num")
	private String batchNum;
    /**
     * 货品运输状态
     */
	@TableField("goods_status")
	private String goodsStatus;


	public String getShipperOrderId() {
		return shipperOrderId;
	}

	public GoodsEntity setShipperOrderId(String shipperOrderId) {
		this.shipperOrderId = shipperOrderId;
		return this;
	}

	public String getTransportId() {
		return transportId;
	}

	public GoodsEntity setTransportId(String transportId) {
		this.transportId = transportId;
		return this;
	}

	public String getName() {
		return name;
	}

	public GoodsEntity setName(String name) {
		this.name = name;
		return this;
	}

	public String getCategory() {
		return category;
	}

	public GoodsEntity setCategory(String category) {
		this.category = category;
		return this;
	}

	public BigDecimal getWeight() {
		return weight;
	}

	public GoodsEntity setWeight(BigDecimal weight) {
		this.weight = weight;
		return this;
	}

	public String getAchieveFlag() {
		return achieveFlag;
	}

	public GoodsEntity setAchieveFlag(String achieveFlag) {
		this.achieveFlag = achieveFlag;
		return this;
	}

	public String getParentId() {
		return parentId;
	}

	public GoodsEntity setParentId(String parentId) {
		this.parentId = parentId;
		return this;
	}

	public String getSize() {
		return size;
	}

	public GoodsEntity setSize(String size) {
		this.size = size;
		return this;
	}

	public String getMaterials() {
		return materials;
	}

	public GoodsEntity setMaterials(String materials) {
		this.materials = materials;
		return this;
	}

	public String getStorageName() {
		return storageName;
	}

	public GoodsEntity setStorageName(String storageName) {
		this.storageName = storageName;
		return this;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public GoodsEntity setPrice(BigDecimal price) {
		this.price = price;
		return this;
	}

	public String getTakeGoodsNum() {
		return takeGoodsNum;
	}

	public GoodsEntity setTakeGoodsNum(String takeGoodsNum) {
		this.takeGoodsNum = takeGoodsNum;
		return this;
	}

	public String getAddressUnload() {
		return addressUnload;
	}

	public GoodsEntity setAddressUnload(String addressUnload) {
		this.addressUnload = addressUnload;
		return this;
	}

	public String getBatchNum() {
		return batchNum;
	}

	public GoodsEntity setBatchNum(String batchNum) {
		this.batchNum = batchNum;
		return this;
	}

	public String getGoodsStatus() {
		return goodsStatus;
	}

	public GoodsEntity setGoodsStatus(String goodsStatus) {
		this.goodsStatus = goodsStatus;
		return this;
	}

	public BigDecimal getLeftWeight() {
		return leftWeight;
	}

	public void setLeftWeight(BigDecimal leftWeight) {
		this.leftWeight = leftWeight;
	}

	@Override
	public String toString() {
		return "Goods{" +
			"shipperOrderId=" + shipperOrderId +
			", transportId=" + transportId +
			", name=" + name +
			", category=" + category +
			", weight=" + weight +
			", achieveFlag=" + achieveFlag +
			", parentId=" + parentId +
			", size=" + size +
			", materials=" + materials +
			", storageName=" + storageName +
			", price=" + price +
			", takeGoodsNum=" + takeGoodsNum +
			", addressUnload=" + addressUnload +
			", batchNum=" + batchNum +
			", goodsStatus=" + goodsStatus +
			"}";
	}
}
